Closed Bug 1408751 Opened 8 years ago Closed 8 years ago

nsDeviceChannel::OpenContentStream: unused variable 'width' & 'height'

Categories

(Core :: Networking, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

In file included from /data/jenkins/workspace/firefox-clang-last/obj-x86_64-pc-linux-gnu/netwerk/protocol/device/Unified_cpp_protocol_device0.cpp:2: /data/jenkins/workspace/firefox-clang-last/netwerk/protocol/device/nsDeviceChannel.cpp:80:28: error: unused variable 'width' [-Werror,-Wunused-variable] NS_NAMED_LITERAL_CSTRING(width, "width="); ^ /data/jenkins/workspace/firefox-clang-last/netwerk/protocol/device/nsDeviceChannel.cpp:81:28: error: unused variable 'height' [-Werror,-Wunused-variable] NS_NAMED_LITERAL_CSTRING(height, "height="); ^ This is because clang improved its detection of unused variables: https://reviews.llvm.org/D38678
Priority: -- → P3
Whiteboard: [necko-triaged]
Is moz-device protocol still in used? It is introduce to access android camera stream, but nowadays we have GetUserMedia API for this purpose. We can remove the entire folder if necessary.
Comment on attachment 8918649 [details] Bug 1408751 - nsDeviceChannel::OpenContentStream: remove unused variable 'width' & 'height' https://reviewboard.mozilla.org/r/189478/#review194788
Attachment #8918649 - Flags: review?(dd.mozilla) → review+
(In reply to Shih-Chiang Chien [:schien] (UTC+8) (use ni? plz) from comment #2) > Is moz-device protocol still in used? It is introduce to access android > camera stream, but nowadays we have GetUserMedia API for this purpose. We > can remove the entire folder if necessary. It seems so, but we should double check with the channel consumer (media team, ui?) and open another bug.
ok, thanks, I will take care of that (I have a build without this directory)
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/78e4e2c9f11f nsDeviceChannel::OpenContentStream: remove unused variable 'width' & 'height' r=dragana
Blocks: 1408957
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
No longer blocks: clang-based-analysis
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: